<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Agency/index')}">等级列表</a></li>
			<li class="active"><a href="{:url('Agency/add')}">等级添加</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Agency/addPost')}">
			<div class="form-group">
				<label for="agr_level" class="col-sm-2 control-label"><span class="form-required">*</span>等级名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="agr_level" name="agr_level" required/>
				</div>
			</div>
			<div class="form-group">
				<label for="money" class="col-sm-2 control-label"><span class="form-required">*</span>代理费用</label>
				<div class="col-md-6 col-sm-10">
					<input type="number" class="form-control" id="money" name="money" required/>
				</div>
			</div>
			<div class="form-group">
				<label for="number" class="col-sm-2 control-label"><span class="form-required">*</span>激活码数量</label>
				<div class="col-md-6 col-sm-10">
					<input type="number" class="form-control" id="number" name="number" required/>
				</div>
			</div>
			<div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
	<!--<script>-->
		<!--function add(){-->
		    <!--var agr_level = $("#agr_level").val();-->
		    <!--var money     = $("#money").val();-->
		    <!--var number    = $("#number").val();-->
            <!--$.post("{:url('Agency/addPost')}",{'agr_level':agr_level,'money':money,'number':number},function(date){-->
                <!--alert(date.msg);-->
                <!--window.location.href = "{:url('/blog/Agency/index')}";-->
            <!--});-->
		<!--}-->
	<!--</script>-->
</body>
</html>